package org.taohuawu.service.fallback;

import org.springframework.stereotype.Component;
import org.taohuawu.pojo.User;
import org.taohuawu.service.UserFeignService;
import org.taohuawu.web.util.JsonResult;

@Component
public class UserFeignServiceFallback implements UserFeignService {
    @Override
    public JsonResult<User> getUser(Integer userId) {
        return JsonResult.err("无法获取订单的用户信息");
    }

    @Override
    public JsonResult addScore(Integer userId, Integer score) {
        return JsonResult.err("增加积分失败");
    }
}
